package zzz.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import zzz.model.GetOrder;
import zzz.model.Order;

public interface OrderMapper {

	//显示订单列表
	List<Order> getAllOrder();
	
	//通过订单id查看详细订单
	Order getOrderDetailById(String hoId);
	
	//发布新订单
	int publishNewOrder(Order order);
	
	//查看我的订单
	List<Order> getMyOrder(String userId);
	
	//删除订单
	void delOrder(String hoId);
	
	//将我抢过的订单插入到getform表中
	int addOrderForGetOrder(GetOrder getOrder);
	
	//查看我抢过的订单
	List<Order> myGetOrder(String userId);
	//抢单״̬
	void updateOrderStatus(@Param("hoId") String hoId,@Param("hoState") int hoState);
	
	//修改订单״̬
	void updateOrderStatus1(@Param("hoId") String hoId,@Param("hoState") int hoState);
}
